package com.nanyang.tms.api.dto.request.companyadjustment;

import com.nanyang.common.core.domain.ApiRequest;
import com.nanyang.tms.common.contstant.TmsCommonConsts;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
@Data
public class CompanyAdjustmentQueryRequest extends ApiRequest {

    /**
     * 调账单号
     */
    private String adjustmentCode;

    /**
     * 卡号
     */
    private String cardNo;

    /**
     * 客户代码
     */
    private String companyCode;

    /**
     * 调账状态（1调账成功，2  调账失败）
     */
    private Integer state;

    /**
     * 调账时间开始
     */
    private String adjustmentTimeStart;
    /**
     * 调账时间结束
     */
    private String adjustmentTimeEnd;
    @Override
    public void requestCheck() {
        if (StringUtils.isNotEmpty(adjustmentTimeStart)) {
            adjustmentTimeStart = adjustmentTimeStart + TmsCommonConsts.DATE_START;
        }
        if (StringUtils.isNotEmpty(adjustmentTimeEnd)) {
            adjustmentTimeEnd = adjustmentTimeEnd + TmsCommonConsts.DATE_END;
        }
    }

}
